package vip.liux.backend.application.service.shop;

import jakarta.annotation.Nullable;
import vip.liux.backend.domain.shared.shop.AreaLevel;

import java.util.Map;

public interface RegionService {
    String getNameById(@Nullable Long id);

    Long getIdByName(String name, AreaLevel level, @Nullable Long parentId);

    Map<Long, RegionDto> getCacheAll();

    Map<Long, RegionDto> getCacheTree();

    Map<String, Long> getCacheCounts();
}
